package modellayer;

/**
 * The Note class to create Note objects
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */

public class Note 
{
	private int noteId;
	private String noteTitle;
	private String noteText;
	private long addedDate;
	private boolean isDummy;
	private KeyPerson kp;
	private Company c;
	
	/**
	 * @param noteId
	 * @param noteTitle
	 * @param noteText
	 * @param addedDate
	 * @param isDummy
	 */
	
	
	/**
	 * Constructor for the Note class
	 */
	public Note(int noteId, String noteTitle, String noteText, long addedDate)
	{
		this.noteId = noteId;
		this.noteTitle = noteTitle;
		this.noteText = noteText;
		this.addedDate = addedDate;
		this.isDummy = false;
	}
	
	/**
	 * Note dummy for the Database layer
	 * @param noteId
	 */
	public Note(int noteId)
	{
		this.noteId = noteId;
		this.isDummy = true;
	}
	
	public int getNoteId()
	{
		return noteId;
	}

	public void setNoteId(int noteId)
	{
		this.noteId = noteId;
	}

	/**
	 * Get method for the noteTitle
	 * @return noteTitle
	 */
	public String getNoteTitle() 
	{
		return noteTitle;
	}

	/**
	 * Set method for the noteTitle
	 * @return noteTitle
	 */
	public void setNoteTitle(String noteTitle) 
	{
		this.noteTitle = noteTitle;
	}

	/**
	 * Get method for the noteText
	 * @return noteText
	 */
	public String getNoteText() 
	{
		return noteText;
	}

	/**
	 * Set method for the noteText
	 * @return noteText
	 */
	public void setNoteText(String noteText) 
	{
		this.noteText = noteText;
	}

	/**
	 * Get method for the addedDate
	 * @return addedDate
	 */
	public long getAddedDate() 
	{
		return addedDate;
	}

	/**
	 * Set method for the addedDate
	 * @return addedDate
	 */
	public void setAddedDate(long addedDate) 
	{
		this.addedDate = addedDate;
	}

	public KeyPerson getKeyPerson() {
		return kp;
	}

	public void setKeyPerson(KeyPerson kp) {
		this.kp = kp;
	}

	public Company getCompany() {
		return c;
	}

	public void setCompany(Company c) {
		this.c = c;
	}
}
